unit cmdSetCenterX;

interface

uses  classes, sysutils
    , nativeXml
    , appMappldXmlNode
    , appMappldXmlCommand
    , appMappldTypes
    , appMappldXmlContext
;

type
    {------------------------------ TCmdSetCenterX }

    {***************************************************************************
    * TCmdSetCenterX
    ***************************************************************************}
    TCmdSetCenterX = class( TMappldXmlCommand )
protected
    procedure   internalProccess(); override;
    end;

implementation

{*******************************************************************************
* internalProccess
*******************************************************************************}
procedure TCmdSetCenterX.internalProccess();
begin
    FxmlContext.centerX := FxmlNode.ValueAsFloat;
end;

initialization

TMappldXmlCommand.registerCommandByCode( XML_CMD_SetCenterX, TCmdSetCenterX );

end.
